package com.hjx.movie.core.security.mapper;

import com.hjx.movie.core.security.model.AuthUser;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2020/6/10 - 10:04
 */
public interface AuthMapper {
     String findUserIdByLoginType(@Param("username") String username, @Param("loginType") Integer loginType);
     String findUserId(@Param("username") String username);
     AuthUser findUserById(String uid);
     List<String> findRoleByUserId(Long uid);
     List<String> findAuthByRoleCode(List<String> roles);
     List<String> findAuthByUserId(Long uid);
}
